#!/usr/bin/env python

import requests as re
import json
import time



headers = {
'authority': 'c.m.163.com',
'method': 'GET',
'path': '/ug/api/wuhan/app/index/feiyan-data-list',
'scheme':'https',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6,zh-TW;q=0.5',
'cache-control': 'max-age=0',
'cookie': '_ntes_nnid=1a684f39d4046d52f54be183fd2338bf,1582615192705; _ntes_nuid=1a684f39d4046d52f54be183fd2338bf',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'none',
'sec-fetch-user': '?1',

'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36 Edg/80.0.361.62'
}


resultJson = json.loads(re.get('https://c.m.163.com/ug/api/wuhan/app/index/feiyan-data-list',headers=headers).text)



# 格式化成2016-03-20 11:45:39形式
print (time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))

